package com.fas;

import com.jfinal.core.JFinal;

/**
 * 
 * <p>
 * Title: AppServer.java
 * </p>
 * <p>
 * Description: 启动 服务
 * </p>
 * <p>
 * Copyright: Copyright (c) Knight
 * </p>
 * 
 * @author Yi Xiaoping <thinker1013@163.com>
 * @date 2015年10月16日 上午10:44:00
 * @version V1.0
 *
 */
public class StartUp {
	public static void main(String[] args) {
		int port = 8080;
		String content = "/hehe";
		if (args != null && args.length > 0) {
			try {
				port = Integer.parseInt(args[0]);
				content = args[1];
			} catch (Exception e) {
			}
		}
		try {

		/*	GroupTemplate gt = BeetlRenderFactory.groupTemplate;
			WebAppResourceLoader loader = (WebAppResourceLoader) gt.getResourceLoader();
			loader.setRoot("src/main/webapp");
*/
			JFinal.start("src/main/webapp", port, content, 10);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
